package test00.test06;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * @Author lzp
 * @Date 2024-04-02
 */
public class MyTest {
    public static void main(String[] args) {
        MyArrayList list =new MyArrayList();

        boolean empty = list.isEmpty();
        System.out.println("是否为空" + empty);

        list.add("a");
        list.add("b");
        list.add("c");

        System.out.println("大小 " + list.size());

        System.out.println("获取指定下标的元素" + list.get(0));

        String oldElement = (String) list.set(2,"s");
        System.out.println("oldElement：" + oldElement);

        String removeElement = (String) list.remove(2);
        System.out.println("删除的元素：" + removeElement);


        System.out.println(Arrays.toString(list.getEleemtDate()));



    }
}
